#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import consultmessage_blueprint
from api_1_0.consultMessageResource.consultMessageResource import ConsultMessageResource
from api_1_0.consultMessageResource.consultMessageOtherResource import ConsultMessageOtherResource

api = Api(consultmessage_blueprint)

api.add_resource(ConsultMessageResource, '/consult-message/<auto_id>', '/consult-message', endpoint='ConsultMessage')


@consultmessage_blueprint.route('/consultmessage/update/<auto_id>', methods=['PUT'], endpoint='ConsultMessageUpdate')
def update(auto_id):
    return ConsultMessageOtherResource.sensitive_update(auto_id)
